package com.cskaoyan.bean;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author Tangyin
 * @description
 * @since 2022/05/06 16:08
 */
@NoArgsConstructor
@Data
public class BrandData {
    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<Brand> list;

    public static com.cskaoyan.bean.BrandData data(long total, Integer pages, Integer limit, Integer page, List list) {
        com.cskaoyan.bean.BrandData brandData = new com.cskaoyan.bean.BrandData();
        brandData.setTotal((int) total);
        brandData.setPages(pages);
        brandData.setPage(page);
        brandData.setLimit(limit);
        brandData.setList(list);
        return brandData;
    }
}

